package com.sinosoft.ptas.control.dto;

import java.io.Serializable;
import java.util.Date;

import com.sinosoft.framework.core.common.utils.ajax.ObjectUtil;
import com.sinosoft.ptas.entity.IndexEntity;

/**
 * 指标传输类
 * @author lianWuJun
 * @time   2017年2月18日 下午3:12:10
 */
public class IndexData implements Serializable{

	private static final long serialVersionUID = 1L;
	private String id;//标识符
	private String firstIndex;//一级指标
	private String secondIndex;//二级指标
	private String thirdIndex;//三级指标
	private String indexValue;//指标值
	private String targetsOfImplPhase;//所属实施期目标ID
	private String creater;//创建人
	private Date createTime;//创建时间
	private String updator;//更新人
	private Date updateTime;//更新时间
	private String targetType;//目标类型（实施期目标：0，年度目标：1）
	private String code;//指标编码
	private String referValue;//参考值
	
	
	public String getReferValue() {
		return referValue;
	}
	public void setReferValue(String referValue) {
		this.referValue = referValue;
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getFirstIndex() {
		return firstIndex;
	}
	public void setFirstIndex(String firstIndex) {
		this.firstIndex = firstIndex;
	}
	public String getSecondIndex() {
		return secondIndex;
	}
	public void setSecondIndex(String secondIndex) {
		this.secondIndex = secondIndex;
	}
	public String getThirdIndex() {
		return thirdIndex;
	}
	public void setThirdIndex(String thirdIndex) {
		this.thirdIndex = thirdIndex;
	}
	public String getIndexValue() {
		return indexValue;
	}
	public void setIndexValue(String indexValue) {
		this.indexValue = indexValue;
	}
	public String getTargetsOfImplPhase() {
		return targetsOfImplPhase;
	}
	public void setTargetsOfImplPhase(String targetsOfImplPhase) {
		this.targetsOfImplPhase = targetsOfImplPhase;
	}
	public String getCreater() {
		return creater;
	}
	public void setCreater(String creater) {
		this.creater = creater;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}
	public String getUpdator() {
		return updator;
	}
	public void setUpdator(String updator) {
		this.updator = updator;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public void setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
	}
	public String getTargetType() {
		return targetType;
	}
	public void setTargetType(String targetType) {
		this.targetType = targetType;
	}
	public String getCode() {
		return code;
	}
	public void setCode(String code) {
		this.code = code;
	}
	
	/**
	 * 传输类转化成实体类
	 */
	public IndexEntity toEntity(){
		IndexEntity indexEntity = new IndexEntity();
		ObjectUtil.oldToNew(indexEntity, this, "serialVersionUID");
		return indexEntity;
	}
	
	/**
	 * 实体类转化成传输类
	 */
	public void toindexData(IndexEntity indexEntity){
		ObjectUtil.oldToNew(this, indexEntity, "serialVersionUID");
	}
}
